package com.javaEE.tes.services;

import com.javaEE.tes.dao.Class1Repository;
import com.javaEE.tes.dao.CurriculumRepository;
import com.javaEE.tes.dao.dto.TeacherCurriculum;
import com.javaEE.tes.entities.Curriculum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CurriculumService {
    @Autowired
    CurriculumRepository curriculumRepository;
    public Curriculum save(Curriculum curriculum){
        return curriculumRepository.save(curriculum);
    }
    public List<Curriculum> getAll(){return curriculumRepository.findAll();}
    public List<TeacherCurriculum> teacherCurricula(){return curriculumRepository.teacherCurriculum();}
}
